package com.db.cm.app.controller;


import com.db.cm.app.mapper.PCountViewMapper;
import com.db.cm.app.model.PCountViewDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * VIEW 前端控制器
 * </p>
 *
 * @author YOURSLIHUA
 * @since 2023-11-24
 */
@RestController
@RequestMapping("/pCountViewDO")
public class PCountViewController {

    @Autowired
    private PCountViewMapper pCountViewMapper;
    @PostMapping("/view")
    public List<PCountViewDO> selectAll() {
        return pCountViewMapper.selectCountView();
    }
}

